﻿<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%
 String TYPE = request.getParameter("type");
 String loadUrl = "homeUrl";
 int type = 0;
 if(TYPE != null){
	 try{
		 type = Integer.parseInt(TYPE); 
		 //防止造型异常
	 }catch(Exception e){
		 e.printStackTrace();
	 }
 }
 //用于刷新时返回主页面初始化加载URL
 switch(type){
	 case 1 : 
	 	loadUrl = "micros/servicesUrl";
	 	break;
	 default :
		 //TODO something
		 System.out.println("- TYPE 暂无定义："+type);
		 break;
 }
 System.out.println("- loadUrl : "+loadUrl);
%>
<html>
<head>
<title>欢迎注册</title>
<meta name="viewport" content="width=device-width" />
<jsp:include page="include.jsp"></jsp:include>
<%
 out.print("<script type='text/javascript'>");
 out.print("window.onload = function () {");
 out.print("doAction('WorkMain','"+loadUrl+"')");
 out.print(" };</script>");
%>
</head>
<body style="overflow: hidden;">
	<div data-role="header" data-position="fixed">
	  <a href="#" onclick="doAction('WorkMain','micros/servicesUrl')" data-role="button" data-icon="home">服务控制台</a>
	  <h1>欢迎使用本系统 </h1>
	  <a href="#" onclick="window.location.href='exit'" data-role="button" data-icon="delete">退出</a>
	  <div data-role="navbar" data-theme="a">
	      <ul>
	        <li><a href="#" onclick="doAction('WorkMain','business/appUrl')" data-icon="grid" data-transition="turn">调解申诉</a></li>
	        <li><a href="#" onclick="doAction('WorkMain','business/trackUrl')" data-icon="info" data-transition="turn">案件追踪</a></li>
	      </ul>
	  </div>
	</div>
	<div id="dialogwv"></div>
	<iframe id="WorkMain" frameborder="0" scrolling="auto" style="width: 100%;height: 580px;margin-top: 10px"></iframe>
</body>
</html>